--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 4ff4a12587badf1b738aaab020da125150caa2f1
Parents : 6b290fd
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-03-31T03:00:16+03:00
feat(tests): add Playwright configuration for end-to-end testing
Changes
Diff
diff --git a/playwright.config.js b/playwright.config.js
new file mode 100644
index 00000000..39f81074
--- /dev/null
+++ b/playwright.config.js
@@ -0,0 +1,34 @@
+const { defineConfig, devices } = require("@playwright/test");
+
+const HOST = process.env.E2E_VITE_HOST || "127.0.0.1";
+const PORT = parseInt(process.env.E2E_VITE_PORT || "5173", 10);
+const baseURL = `http://${HOST}:${PORT}`;
+
+module.exports = defineConfig({
+ testDir: "./tests/e2e",
+ fullyParallel: true,
+ forbidOnly: !!process.env.CI,
+ retries: process.env.CI ? 1 : 0,
+ workers: 1,
+ reporter: process.env.CI ? "line" : [["list"], ["html", { open: "never" }]],
+ use: {
+ ...devices["Desktop Chrome"],
+ baseURL,
+ trace: "on-first-retry",
+ screenshot: "only-on-failure",
+ },
+ projects: [
+ {
+ name: "chromium",
+ use: { ...devices["Desktop Chrome"] },
+ },
+ ],
+ webServer: {
+ command: "bash scripts/e2e/start-e2e-stack.sh",
+ url: `${baseURL}/`,
+ reuseExistingServer: !process.env.CI,
+ timeout: 270000,
+ stdout: "pipe",
+ stderr: "pipe",
+ },
+});
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────